<template>
	<div class="uhead">
		<div class="xbox">
			<div class="uhead-left">
			</div>
			<div class="uhead-right1">
				<h4 @click="dl()">去登录<span>/</span>注册</h4>
				<img src="../../../../public/igs/u1_3.png" >
				<h3>新用户注册送388元大礼包</h3>
			</div>
		</div>
		<div class="xbox2">
			<h4>未获得</h4>
			<img src="../../../../public/igs/u1_5.png" >
			<div class="minbox">
				<p>游侠风户外会员</p>
				<p>全站200+户外线路免费畅玩</p>
			</div>
			<p class="p1">立即开通<i class="iconfont">&#xe633;</i></p>
		</div>
	</div>
</template>

<script>
	import Cookies from 'js-cookie';
	export default{
		name:'Uhead',
		methods:{
			dl(){

				if(Cookies.get('uname')){
					this.$router.push('/order')
				}else{
					this.$router.push('/Login')
					
				}
				
				
			}
		}
	}
</script>

<style>
	.uhead{
		position: relative;
		width: 100%;
		height: 4.01rem;
		background-size: 100%;
		border-radius:  0 0 0.1rem 0.1rem;
		background-image: url(../../../../public/igs/u1_1.png);
	}
	.uhead .xbox{
		position: absolute;
		left: 0.45rem;
		top: 0.8rem;
		display: flex;
		align-items: center;
	}
	.uhead .uhead-left{
		background-image: url(../../../../public/igs/u1_2.png);
		width: 1.6rem;
		height: 1.6rem;
		border-radius: 50%;
		margin-right: 0.25rem;
		background-size: 100%;
	}
	
	.user .uhead-right1 h4{
		position: relative;
		font-size: 0.58rem;
		font-weight: bold;
		color: #000;
	}
	.user .uhead-right1 span{
		position: relative;
		font-size: 0.48rem;
		font-weight: bold;
		color: #000;
	}
	.user .uhead-right1 img{
		position: absolute;
		left: 2.1rem;
		top: 1.3rem;
		width: 0.25rem;
		height: 0.18rem;
		margin-left: 0.5rem;
		transform: rotate(180deg);
	}
	.user .uhead-right1 h3{
		position: absolute;
		width:88%;
		height: 0.62rem;
		color: white;
		font-size: 0.32rem;
		font-weight: bold;
		text-align: center;
		line-height: 0.6rem;
		border-radius: 0.3rem;
		left: 2rem;
		top: 1.45rem;
		background: linear-gradient(to right, #ff6000, #ffa32c);
	}
	.user .xbox2{
		display: flex;
		align-items: center;
		position: relative;
		top: 2.9rem;
		margin: auto;
		background-image: url(../../../../public/igs/u1_4.png);
		width: 9.43rem;
		height: 1.65rem;
		background-size: 100% 100%;
	}
	.user .xbox2 h4{
		position: absolute;
		top: 0;
		left: 0;
		width: 1.2rem;
		height: 0.48rem;
		color: white;
		line-height: 0.48rem;
		text-align: center;
		border-radius: 0.2rem 0 0.2rem 0;
		background-color: #c2c2c2;
	}
	.user .xbox2 img{
		width: 1.38rem;
		height: 0.91rem;
		padding-top: 0.1rem;
		margin-left: 0.32rem;
		background-size: 100%;
	}
	.user .xbox2 p:first-child{
		font-size: 0.37rem;
		color: #fef6a2;
		padding-left: 0.2rem;
		margin-top: 0.15rem;
	}
	.user .xbox2 p:nth-child(2){
		font-size: 0.27rem;
		color: #fef6a2;
		margin-top: 0.2rem;
		padding-left: 0.2rem;
	}
	.user .xbox2 .p1{
		position: absolute;
		line-height: 0.55rem;
		top: 0.3rem;
		right: 0.3rem;
		width: 1.8rem;
		height: 0.55rem;
		text-align: center;
		border-radius: 0.3rem;
		background: linear-gradient(270deg, #FFE494, #FEF6A2);
	}
	.user .xbox2 p i{
		font-size: 0.1rem;
		color: #000000;
		font-weight: bold;
	}
</style>
